package com.vim.modules.web.service;

import com.vim.common.utils.IdGen;
import com.vim.common.base.CrudServiceImpl;
import com.vim.modules.web.model.ShopClassify;
import com.vim.modules.web.dao.ShopClassifyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class ShopClassifyService extends CrudServiceImpl<ShopClassify> {

    @Resource
    private ShopClassifyMapper shopClassifyMapper;

    @Autowired
    public ShopClassifyService(ShopClassifyMapper mapper) {
        super(mapper);
    }

    @Override
    public int save(ShopClassify entity) {
        entity.setClassifyId(IdGen.uuid());
        return super.save(entity);
    }
}

